package it.allerj.gui.action;

import it.allerj.common.persistence.clientSide.*;
import java.lang.reflect.Proxy;

public class FactoryGuiActionProxy {

	public static GuiActionInterface getActionProxy(GuiActionInterface action){
		return (GuiActionInterface)Proxy.newProxyInstance(
				action.getClass().getClassLoader(),
				new Class[]{GuiActionInterface.class},
				new ActionInvocationHandler(action,true));
	}
        public static GuiActionInterface standardGuiAction =  FactoryGuiActionProxy.getActionProxy(new GuiAction());
}
